package com.ybbase.framework.base.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * @author cg
 * @date 2019-08-12 09:43
 * @DEC 基础树形架构
 */
@Data
@ApiModel("基础树形架构")
@NoArgsConstructor
@AllArgsConstructor
public class TreeModel {

    @ApiModelProperty(value = "树形节点名称",required = true)
    private String name;

    @ApiModelProperty(value = "树形节点值",required = true)
    private String value;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "是否是叶子节点")
    private Boolean isleaf;

    @ApiModelProperty(value = "子数据")
    private List<TreeModel> children;

    @ApiModelProperty(value = "上级编码")
    private String pid;

    @ApiModelProperty(value = "本级编码")
    private String id;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value="类型")
    private String type;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    private Integer parentId;


    /**
     * 节点标题
     * */
    private String title;

    @ApiModelProperty(value = "扩展参数")
    private Map<String,Object> extendsMap;
}
